package com.itheima.App;

import com.itheima.Factory.TeacherDaoFactory;
import com.itheima.dao.TeacherDao;
import com.itheima.dao.impl.TeacherDaoimpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class app3 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ca = new ClassPathXmlApplicationContext("applicationContext.xml");
        TeacherDao teacher = (TeacherDao) ca.getBean("TeacherDao");
        teacher.save();

    }
}
